//
//  MYXsystemNewViewController.m
//  meiyinxiang
//
//  Created by 陈李飞 on 2017/11/4.
//  Copyright © 2017年 hbjApple. All rights reserved.
//系统消息

#import "MYXsystemNewViewController.h"
#import "MYXsystemNewCell.h"



static NSString *const MYXsystemNewCellIdentifier = @"MYXsystemNewCell";
@interface MYXsystemNewViewController ()<UITableViewDataSource,UITableViewDelegate,UIAlertViewDelegate>
@property (nonatomic, strong)UITableView * m_tabView ;
@property (nonatomic, strong) NSMutableArray *dataArr;

@end

@implementation MYXsystemNewViewController
-(NSMutableArray *)dataArr
{
    if (!_dataArr) {
        _dataArr = [NSMutableArray array];
    }
    return _dataArr;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createUI];
}
#pragma mark - UI

- (void)createUI
{
    [self.view addSubview:self.m_tabView];
     [self.m_tabView registerNib:[UINib nibWithNibName:MYXsystemNewCellIdentifier bundle:nil] forCellReuseIdentifier:MYXsystemNewCellIdentifier];
    

}

#pragma mark -我的消息列表

-(UITableView *)m_tabView
{
    if (!_m_tabView)
    {
        _m_tabView = [[UITableView alloc]initWithFrame:CGRectMake(0,0, WIDTH, HEIGHT) style:UITableViewStylePlain];
        _m_tabView.backgroundColor =  [UIColor whiteColor];
        _m_tabView.separatorStyle=UITableViewCellSeparatorStyleNone;
        _m_tabView.showsVerticalScrollIndicator = NO;
        _m_tabView.dataSource = self;
        _m_tabView.delegate = self;
        WS(weakSelf)
    }
    return _m_tabView;
}
#pragma mark - Table view data source

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return  3;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    MYXsystemNewCell *MYXsystemNewCe = (MYXsystemNewCell *)[tableView dequeueReusableCellWithIdentifier:MYXsystemNewCellIdentifier];
    MYXsystemNewCe.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return MYXsystemNewCe;
   
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 51;
}


- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
